package com.tony.firewall;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.tony.firewall.adapter.SessionListAdapter;
import com.tony.firewall.R;

public class ListItemFragment extends Fragment {
	private ListView mListView;
	private SessionListAdapter mAdapter;

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		mListView.setAdapter(mAdapter);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		mListView = (ListView) inflater.inflate(R.layout.layout_listview, container, false);
		return mListView;
	}

	public void setAdapter(SessionListAdapter adapter) {
		mAdapter = adapter;
	}
}
